import unittest
from tools import login


class LoginTest(unittest.TestCase):

    def test_login_1(self):
        if '登录成功' == login('admin', '123456'):
            print("用例通过")
        else:
            print("用例不通过")

    def test_login_2(self):
        if '登录失败' == login('root', '123456'):
            print("用例通过")
        else:
            print("用例不通过")

    def test_login_3(self):
        if '登录失败' == login('admin', '123123'):
            print("用例通过")
        else:
            print("用例不通过")

    def test_login_4(self):
        if '登录失败' == login('aaa', '123123'):
            print("用例通过")
        else:
            print("用例不通过")